import { Request, Response, NextFunction } from 'express';
import { url_for } from 'src/utlis';

export function customMiddleware(req: Request, res: Response, next: NextFunction) {
  res.locals.url_for = (path: string) => url_for(req, path);
  next();
}